Learn R Programming

VeryLargeIntegers (version 0.2.1)

10. Least common multiple: Least Common Multiple for vli Objects

Description

Computation of the least common multiple of two vli (Very Large Integers) objects.

Usage

lcmul(x, y)

# S3 method for default lcmul(x, y)

# S3 method for numeric lcmul(x, y)

# S3 method for vli lcmul(x, y)

Value

object of class vli

Arguments

x

object of class vli or 32 bits integer

y

object of class vli or 32 bits integer

Author

Javier Leiva Cuadrado

Examples

Run this code
x <- as.vli("125634750214756")
y <- as.vli("761048412524216246")
lcmul(x, y)

Run the code above in your browser using DataLab